package com.hzw.code.vm

import android.view.View
import com.hzw.code.pageState.State
import com.hzw.code.vm.event.ICommonEvent
import com.scwang.smartrefresh.layout.api.RefreshLayout

/**
 *
 * @Author:         HuaZhongWei
 * @CreateDate:     2020/4/20 13:19
 *
 * @Description:
 *
 */
interface IView : ICommonEvent {

    fun onRefreshForError(refreshLayout: RefreshLayout) {

    }

    fun onRetryForError() {

    }

    fun onRefreshForNetError(refreshLayout: RefreshLayout) {

    }

    fun onRetryForNetError() {

    }

    fun onRefreshForEmpty(refreshLayout: RefreshLayout) {

    }

    fun onRetryForEmpty() {

    }

    fun onShowViewForPage(view: View, state: State) {

    }

    fun onHideViewForPage(view: View, state: State) {

    }
}